package org.noka.http.header;

import java.util.ArrayList;
import java.util.List;

public class HeaderPrivateItem {

	private String dir = null;//私有协议虚拟目录
	private Boolean forpublic = true;//是否继承公共有协议
	private List<HeaderItem> headers= null;//协议头组
	
	public HeaderPrivateItem(String dir,Boolean forpublic,List<HeaderItem> headers){
		this.dir = dir;
		this.forpublic = forpublic;
		this.headers = headers;
	}
	
	public HeaderPrivateItem(String dir,Boolean forpublic){
		this.dir = dir;
		this.forpublic = forpublic;
		this.headers = new ArrayList<HeaderItem>();
	}
	
	public void addHeader(HeaderItem header){
		this.headers.add(header);
	}
	public void rmoveHeader(HeaderItem header){
		this.headers.remove(header);
	}
	
	public String getDir() {
		return dir;
	}
	public void setDir(String dir) {
		this.dir = dir;
	}
	public Boolean getForpublic() {
		return forpublic;
	}
	public void setForpublic(Boolean forpublic) {
		this.forpublic = forpublic;
	}
	public List<HeaderItem> getHeaders() {
		return headers;
	}
	public void setHeaders(List<HeaderItem> headers) {
		this.headers = headers;
	}
	
	
}
